#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
typedef long long LL;
int main()
{
	int ans = 0;
	int n = 1;
	while (ans + n <= 1000) {
		ans += n;
		n++;
	}
	cout << n << endl;
	return 0;
}